﻿@model Whoever.Health.Website.Models.ContactViewModel

<h2>Editar contacto</h2>

<div class="row action-bar">
    @Action.Back()

    @SelectedAction.Delete()
</div>

<div class="row" data-bind="with: viewModel.SelectedItem">
    @using (Html.BeginForm("Update", "Contact", FormMethod.Post, new { id = "update", @data_bind = "submit: viewModel.Update" }))
    {
        @Html.Partial("FieldsPartial", Model);
        
        <button data-bind="click: viewModel.Update" type="button" class="btn btn-action btn-full-width">@Html.LocalizedAction("Update")</button> 
    }
</div>
